import Vue from 'vue'
import Router from 'vue-router'
import Work1 from '@/components/Work1'
import Work2 from '@/components/Work2'
import Work3 from '@/components/Work3'
import Work4 from '@/components/Work4'
import Work5 from '@/components/Work5'
import Login from '@/components/Login'
import ProductView from '@/components/ProductView'
import Ces from '@/components/Ces'
import ALiPay from '@/components/ALiPay'
import AuctionList from '@/components/AuctionList'
import MyAuctions from '@/components/MyAuctions'
import MyParticipated from '@/components/MyParticipated'
import Register from '@/components/Register'
import User from '@/components/User'
import ChangePassword from '@/components/ChangePassword'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'D',
      component: Login,

    },
    {
      path: '/Login',
      name: 'Login',
      component: Login,

    },
    {
      path: '/Work1',
      name: 'Work1',
      component: Work1,
    },
    {
      path: '/Work2',
      name: 'Work2',
      component: Work2,
      meta: {
        // isLogin: false,
      }
    },
    {
      path: '/Work3',
      name: 'Work3',
      component: Work3
    },
    {
      path: '/ProductView',
      name: 'ProductView',
      component: ProductView
    },
    {
      path: '/Work4',
      name: 'Work4',
      component: Work4
    },
    {
      path: '/Work5',
      name: 'Work5',
      component: Work5
    },
    {
      path: '/Ces',
      name: 'Ces',
      component: Ces
    },
    {
      path: '/ALiPay',
      name: 'ALiPay',
      component: ALiPay
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    }
    ,
    {
      path: '/AuctionList',
      name: 'AuctionList',
      component: AuctionList
    }
    ,
    {
      path: '/MyAuctions',
      name: 'MyAuctions',
      component: MyAuctions
    }
    ,
    {
      path: '/MyParticipated',
      name: 'MyParticipated',
      component: MyParticipated
    }
    ,
    {
      path: '/User',
      name: 'User',
      component: User
    }
    ,
    {
      path: '/ChangePassword',
      name: 'ChangePassword',
      component: ChangePassword
    }
  ]
})
